package com.dy.lock.screen.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.CustomerMarkRelationDao;
import com.dy.lock.screen.pojo.CustomerMarkInfo;

@Repository("customerMarkRelationDao")
public class CustomerMarkRelationDaoImpl extends
		BaseDaoImpl<CustomerMarkInfo, String> implements
		CustomerMarkRelationDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.CustomerMarkMapper";
	}

	@Override
	public List<CustomerMarkInfo> queryListByCid(String userId) {
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryListByCid", userId);
	}

	@Override
	public CustomerMarkInfo queryByCidAndMid(CustomerMarkInfo markIfno) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByCidAndMid", markIfno);
	}

}
